<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>统计首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
    <style>
        .layui-card {
            border: 1px solid #f2f2f2;
            border-radius: 5px;
            height: 160px;
        }

        .icon {
            margin-right: 10px;
            color: #1aa094;
        }

        .icon-cray {
            color: #ffb800 !important;
        }

        .icon-blue {
            color: #1e9fff !important;
        }

        .icon-tip {
            color: #ff5722 !important;
        }

        .layuimini-qiuck-module {
            text-align: center;
            margin-top: 10px
        }

        .layuimini-qiuck-module a i {
            display: inline-block;
            width: 100%;
            height: 60px;
            line-height: 60px;
            text-align: center;
            border-radius: 2px;
            font-size: 30px;
            background-color: #F8F8F8;
            color: #333;
            transition: all .3s;
            -webkit-transition: all .3s;
        }

        .layuimini-qiuck-module a cite {
            position: relative;
            top: 2px;
            display: block;
            color: #666;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
        }

        .welcome-module {
            width: 100%;
            height: 210px;
        }

        .panel {
            background-color: #fff;
            border: 1px solid transparent;
            border-radius: 3px;
            -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
            box-shadow: 0 1px 1px rgba(0, 0, 0, .05)
        }

        .panel-body {
            padding: 10px
        }

        .panel-title {
            margin-top: 0;
            margin-bottom: 0;
            font-size: 12px;
            color: inherit
        }

        .label {
            display: inline;
            padding: .2em .6em .3em;
            font-size: 75%;
            font-weight: 700;
            line-height: 1;
            color: #fff;
            text-align: center;
            white-space: nowrap;
            vertical-align: baseline;
            border-radius: .25em;
            margin-top: .3em;
        }

        .layui-red {
            color: red
        }

        .main_btn>p {
            height: 40px;
        }

        .layui-bg-number {
            background-color: #F8F8F8;
        }

        .layuimini-notice:hover {
            background: #f6f6f6;
        }

        .layuimini-notice {
            padding: 7px 16px;
            clear: both;
            font-size: 12px !important;
            cursor: pointer;
            position: relative;
            transition: background 0.2s ease-in-out;
        }

        .layuimini-notice-title,
        .layuimini-notice-label {
            padding-right: 70px !important;
            text-overflow: ellipsis !important;
            overflow: hidden !important;
            white-space: nowrap !important;
        }

        .layuimini-notice-title {
            line-height: 28px;
            font-size: 14px;
        }

        .layuimini-notice-extra {
            position: absolute;
            top: 50%;
            margin-top: -8px;
            right: 16px;
            display: inline-block;
            height: 16px;
            color: #999;
        }


        .layui-col-xs6-release {
            width: 127px;
            display: inline-block;
        }

        h5 {
            text-align: center;
            font-size: 15px;
        }

        .no-margins {
            color: #1e9fff;
            text-align: center;
            padding: 10px;
        }


        .layui-card-header {
            font-size: 18px;
        }

        .panel-body {
            background-color: #fff;
            /* margin-right: 5px; */
        }


        .layui-col-md8 {
            height: 180px;
            width: 1200px;
            padding-bottom: 0px;
            background-color: blueviolet;
        }

        .stock-goods {
            width: 175px;
            display: inline-block;
        }

        .inventory {
            width: 275px;
            /* display: inline-block; */
            float: left;
        }

        .release {
            width: 596px;
            height: 100%;
            margin: auto;
            /* margin-top: 20px;
            margin-right: 1px; */
            /* background-color: #1e9fff; */
            float: left;
        }

        .release .centreCard {
            width: 100%;
            height: 260px;
        }

        .release .leftCard {
            padding: 16px 0;
            margin-right: 5px;
        }

        .leftCard .layui-card-body {
            padding: 20px 15px 20px 15px;
        }

        #rightRelease {
            width: 456px;
            margin-left: 8px;
        }

        .rightTable {
            /* width: 100%; */
            margin-bottom: 10px;
            margin-top: 3.5px;
            height: 253px;
            background-color: #fff;
            border: 1px solid #99999929;
            box-shadow: -1px 1px #9999991c;
            border-radius: 5px;
        }

        .profit {
            width: 557px;
        }

        .to1 {
            margin-right: 10px;
        }
    </style>
    <script src="../js/host.js"></script>
</head>

<body>
    <div>
        <div class="layuimini-main">
            <div class="layui-row layui-col-space6 release">
                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6 custom">
                        <div class="layui-col-md12">
                            <div class="layui-card leftCard">
                                <div class="layui-card-header"><i class="fa layui-icon layui-icon-user to1"></i>客户</div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日+</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysCustom">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本周+</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="weekCustom">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月+</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthCustom">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>客户总数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="sumCust">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6">
                        <div class="layui-col-md12">
                            <div class="layui-card leftCard">
                                <div class="layui-card-header"><i class="fa layui-icon layui-icon-user to1"></i>供货商
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space6">
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日+</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysSupplier">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本周+</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="weekSupplier">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月+</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthSupplier">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6-release">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>供货商总数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="sumSupplier">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6">
                        <div class="layui-col-md12">
                            <div class="layui-card leftCard">
                                <div class="layui-card-header"><i
                                        class="fa layui-icon layui-icon-cart-simple to1"></i>进货
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space6">
                                        <div class="stock-goods">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日入库商品</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysGoods">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="stock-goods">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日商品价值</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysGoodsPrice">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="stock-goods">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月入库总商品</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthGoods">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>


                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6">
                        <div class="layui-col-md12">
                            <div class="layui-card leftCard">
                                <div class="layui-card-header"><i class="fa layui-icon layui-icon-cart to1"></i>库存
                                </div>
                                <div class="layui-card-body">

                                    <div class="layui-row layui-col-space6">
                                        <div class="inventory" style="padding: 2px;">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>库存商品</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="goodsNum">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory" style="padding: 2px;">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>库存商品价值</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="goodsSumPrice">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


            <div class="layui-row layui-col-space6 release">
                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6">
                        <div class="layui-col-md12">
                            <div class="layui-card centreCard">
                                <div class="layui-card-header"><i class="fa layui-icon layui-icon-service to1"></i>销售
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space6">
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日出库商品</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysSalegoodsPrice">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月出库总商品</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthSalegoods">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日销售订单数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysSalegoods">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日销售订单金额</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysgoodsmoney">0</h1>
                                                    </div>
                                                </div>
                                            </div>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6">
                        <div class="layui-col-md12">
                            <div class="layui-card centreCard">
                                <div class="layui-card-header"><i class="fa layui-icon layui-icon-username to1"></i>操作人员
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space6">
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日成交订单笔数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysSalegoodsNum">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日订单金额</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysSalegoodsPrice">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月总订单笔数</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthSalegoodsNum">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月总订单金额</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthSalegoodsPrice">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-col-md12">
                    <div class="layui-row layui-col-space6">
                        <div class="layui-col-md12">
                            <div class="layui-card centreCard">
                                <div class="layui-card-header"><i
                                        class="fa layui-icon layui-icon-chart-screen to1"></i>统计
                                </div>
                                <div class="layui-card-body">
                                    <div class="layui-row layui-col-space6">
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日成交毛利率</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysGrossprofit">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>今日盈利</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="todaysProfit">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="inventory profit">
                                            <div class="panel layui-bg-number">
                                                <div class="panel-body">
                                                    <div class="panel-title">
                                                        <h5>本月总盈利</h5>
                                                    </div>
                                                    <div class="panel-content">
                                                        <h1 class="no-margins" id="monthProfit">0</h1>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-row layui-col-space6 release" id="rightRelease">
                <div class="rightTable" id="saleTotalTable"></div>
                <div class="rightTable" id="grossMarginTable"></div>
                <div class="rightTable" id="stockGoodsTable"></div>
            </div>
        </div>
    </div>






    <script src="../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
    <script src="../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
    <script>
        setInterval(function (){
            // location.reload();
            bugmain();
        },5000)
        bugmain();
        function bugmain(){
            layui.use(['layer', 'miniTab', 'echarts'], function () {
                var $ = layui.jquery,
                    layer = layui.layer,
                    miniTab = layui.miniTab,
                    echarts = layui.echarts;

                miniTab.listen();


                // 销售总金额
                $.ajaxSettings.async = false;
                var salesSumMoneyData = [];
                var xAxisSalesSumMoney = [];
                $.getJSON(host + "/home/salesSumMoney", function (data) {
                    // console.log(data.data);
                    for (var i = 0; i < data.data.length; i++) {
                        xAxisSalesSumMoney.push(data.data[i].month);
                        salesSumMoneyData.push(data.data[i].totalPrice);
                    }
                })
                var saleTotalTable = echarts.init(document.getElementById('saleTotalTable'));
                var grossMarginTable = echarts.init(document.getElementById('grossMarginTable'));
                var stockGoodsTable = echarts.init(document.getElementById('stockGoodsTable'));
                var saleTotalTableOption = {
                    title: {
                        text: '销售总金额',
                        left: 'center'
                    },
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        },
                        formatter: function (params) {
                            var tar = params[0];
                            return "月份："+tar.name + '<br/> 销售金额 : ' + tar.value +'元';
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: xAxisSalesSumMoney
                    },
                    yAxis: {
                        type: 'value'
                    },
                    series: [
                        {
                            data: salesSumMoneyData,
                            type: 'bar',
                            showBackground: true,
                            backgroundStyle: {
                                color: 'rgba(0, 0, 0, 1)'
                            },
                            color: "#1e9fff"
                        }
                    ]
                };

                //毛利率
                var monthGrossmarginData = [];
                var xAxisMonthGrossmargin = [];
                $.getJSON(host + "/home/monthGrossmargin", function (data) {
                    console.log(data.data);
                    for (var i = 0; i < data.data.length; i++) {

                        monthGrossmarginData.push(data.data[i].month);
                        xAxisMonthGrossmargin.push(+data.data[i].totalPrice);
                    }
                })
                // console.log(monthGrossmarginData)
                // console.log(xAxisMonthGrossmargin)
                var grossMarginTableOption = {
                    title: {
                        text: '毛利率',
                        left: 'center'
                    },
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        },
                        formatter: function (params) {
                            var tar = params[0];
                            return "月份："+tar.name + '<br/> 毛利率 : ' + tar.value+"%";
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: monthGrossmarginData
                    },
                    yAxis: {
                        type: 'value'
                    },
                    series: [
                        {
                            data: xAxisMonthGrossmargin,
                            type: 'line',
                            showBackground: true,
                            backgroundStyle: {
                                color: 'rgba(0, 0, 0, 1)'
                            },
                            color: "#1e9fff"
                        }
                    ]
                }

                var monthSumPriceData = [];
                var xAxisMonthSumPrice = [];
                $.getJSON(host + "/home/monthSumPrice", function (data) {
                    // console.log(data.data);
                    for (var i = 0; i < data.data.length; i++) {
                        monthSumPriceData.push(data.data[i].month);
                        xAxisMonthSumPrice.push(data.data[i].totalPrice);
                    }
                })

                var stockGoodsTableOption = {
                    title: {
                        text: '进货总金额',
                        left: 'center'
                    },
                    tooltip: {
                        trigger: 'axis',
                        axisPointer: {
                            type: 'shadow'
                        },
                        formatter: function (params) {
                            var tar = params[0];
                            return "月份："+tar.name + '<br/> 进货总金额 : ' + tar.value+"元";
                        }
                    },
                    xAxis: {
                        type: 'category',
                        data: monthSumPriceData
                    },
                    yAxis: {
                        type: 'value'
                    },
                    series: [
                        {
                            data: xAxisMonthSumPrice,
                            type: 'bar',
                            showBackground: true,
                            backgroundStyle: {
                                color: 'rgba(0, 0, 0, 1)'
                            },
                            color: "#1e9fff"
                        }
                    ]
                }
                saleTotalTable.setOption(saleTotalTableOption);
                grossMarginTable.setOption(grossMarginTableOption);
                stockGoodsTable.setOption(stockGoodsTableOption);

                // echarts 窗口缩放自适应
                window.onresize = function () {
                    saleTotalTable.resize();
                    grossMarginTable.resize();
                    stockGoodsTable.resize();
                }

            });

            var $ = layui.jquery,
                form = layui.form,
                table = layui.table;
            // 客户
            $.getJSON(host + "/home/customerInfo", function (data) {
                // console.log(data.data);
                $("#weekCustom").html(data.data.weekCustom)
                $("#monthCustom").html(data.data.monthCustom)
                $("#sumCust").html(data.data.sumCust)
                $("#todaysCustom").html(data.data.todaysCustom)
            })

            //供应商
            $.getJSON(host + "/home/SupplierInfo", function (data) {
                // console.log(data.data);
                $("#todaysSupplier").html(data.data.todaysSupplier)
                $("#weekSupplier").html(data.data.weekSupplier)
                $("#sumSupplier").html(data.data.sumSupplier)
                $("#monthSupplier").html(data.data.monthSupplier)
            })

            //进货 库存
            $.getJSON(host + "/home/GoodsInfo", function (data) {
                // console.log(data.data);
                $("#todaysGoods").html(data.data.todaysGoods)
                $("#todaysGoodsPrice").html(data.data.todaysGoodsPrice)
                $("#monthGoods").html(data.data.monthGoods)
                $("#goodsNum").html(data.data.goodsNum)
                $("#goodsSumPrice").html(data.data.goodsSumPrice)
            })

            //销售
            $.getJSON(host + "/home/SaleInfo", function (data) {
                // console.log(data.data);
                $("#todaysSalegoodsPrice").html(data.data.todaysSalegoodsPrice)
                $("#monthSalegoods").html(data.data.monthSalegoods)
                $("#todaysSalegoods").html(data.data.todaysSalegoods)
                $("#todaysgoodsmoney").html(data.data.todaysgoodsmoney)
                $("#todaysSalegoodsNum").html(data.data.todaysSalegoodsNum)
                $("#todaysSalegoodsPrice").html(data.data.todaysSalegoodsPrice)
                $("#monthSalegoodsNum").html(data.data.monthSalegoodsNum)
                $("#monthSalegoodsPrice").html(data.data.monthSalegoodsPrice)
            })

            //统计
            $.getJSON(host + "/home/GrossprofitInfo", function (data) {
                // console.log(data.data);
                $("#todaysGrossprofit").html(data.data.todaysGrossprofit)
                $("#todaysProfit").html(data.data.todaysProfit)
                $("#monthProfit").html(data.data.monthProfit)
            })
        }


    </script>

</body>

</html>